<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="commons/taglibs.jsp" %>
<!DOCTYPE html>
<!-- saved from url=(0026)http://sell.fqapps.com/reg -->
<html class="js cssanimations"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <title>商品清理-一折微信淘客系统</title>

    <link rel="stylesheet" type="text/css" href="${ctx}/assets/css/amazeui.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/assets/css/admin.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/assets/css/style.css">

    <!--[if (gte IE 9)|!(IE)]><!-->
    <script type="text/javascript" src="${ctx}/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="${ctx}/assets/js/fastclick.min.js"></script>
    <script>$(function() {FastClick.attach(document.body);});</script>
    <!--<![endif]-->

    <script type="text/javascript" src="${ctx}/assets/js/amazeui.min.js"></script>
</head>

<body>
<%@ include file="commons/dialog.jsp" %>
<jsp:include page="commons/head.jsp" flush="true" />
<script>
$(function(){
		
	//表单提交AJAX化
	//-------------------------------------------------------------------
	$('#clean_form').ajaxForm({
				beforeSubmit:  checkForm,
				success:       complete,
				dataType: 'json'
	});
	function checkForm(){
				
	}
	function complete(data){
		
		if (data.status==1){
			
			$("#fq_confirm_info").html(data.info);
			$('#fq_confirm').modal({
				closeViaDimmer:false,
				onConfirm: function(options) {
						window.location.href="/item/clean.html";
				},
			});

		}else{	
			$("#fq_alert_info").html(data.info);
			$('#fq_alert').modal({closeViaDimmer:false});
		}
		
	}
			
		
});
</script>

<script>

function search(){

	var type = $("#search_type").children('option:selected').val(); 
		
	if(type == 1){
		var title = $('#key').val();
		window.location.href="/item/manage?title="+encodeURIComponent(title); 	
	}
	if(type == 2){
		var id = $('#key').val();
		window.location.href="/item/manage/id/"+id; 		
	}


}

</script>

<div class="am-cf admin-main">

<div class="am-modal am-modal-alert" tabindex="-1" id="to_be_continued">

  <div class="am-modal-dialog">

    <div class="am-modal-hd" id="fq_alert_title"></div>

    <div class="am-modal-bd" id="fq_alert_info">即将上线！</div>

    <div class="am-modal-footer">

      <span class="am-modal-btn">朕知道了</span>

    </div>

  </div>

</div>

<!-- sidebar start -->
  <jsp:include page="commons/left.jsp" flush="true" />
<!-- sidebar end -->  

<!-- content start -->
<div class="admin-content"><div class="admin-content-body">
	
	<div class="am-margin-top-sm am-margin-left">
		<strong class="am-text-primary am-text-lg">我的商品</strong> / <small>My item</small>
	</div>
	
	<div class="am-margin">
	
		<div class="am-margin-bottom">
			<div class="am-form">
				<select class="am-fl" id="search_type" style="height:31px;width:120px;font-size:12px;">
					<option value="1">按商品标题搜索</option>
					<option value="2">按商品ID搜索</option>
				</select>
			</div>
			<div class="am-input-group" style="width: 300px;left: 20px;">
	
				<input type="text" placeholder="" id="key" class="am-form-field" style="height: 31px;" onkeydown="if(event.keyCode==13) {search();return false;}">
				<span class="am-input-group-btn" style="">
					<button class="am-btn am-btn-default" type="button" onclick="search()" style="height: 31px;"><span class="am-icon-search" style="position: relative; top: -3px;"></span></button>
				</span>
			</div>
		</div>
		
		<ul class="am-nav am-nav-tabs">
			<li >
				<a href="${ctx}/product/myItemPage.do">进行中</a>
			</li>
			<li >
				<a href="/item/manage/status/2.html">未开始</a>
			</li>
			<li >
				<a href="/item/manage/status/3.html">已过期</a>
			</li>
			<li >
				<a href="/item/manage/status/-1.html">已下架</a>
			</li>
			<li >
				<a href="/item/manage.html">全部</a>
			</li>
			<li class="am-active">
				<a href="javascript:void(0);"><i class="am-icon-trash" style="top: -1px;position: relative;"></i> 批量清理</a>
			</li>
		</ul>
		
		
		<form id="clean_form" method='post' class="am-margin am-form am-form-horizontal">
			<label class="am-checkbox am-secondary">
				<input type="checkbox"  value="1" name="all" data-am-ucheck> 全部商品（共0个）
			</label>
			<label class="am-checkbox am-secondary">
				<input type="checkbox" 	value="1" name="ing" data-am-ucheck> 进行中（共0个）
			</label>
			<label class="am-checkbox am-secondary">
				<input type="checkbox"  value="1" name="nostart" data-am-ucheck > 未开始（共0个）
			</label>
			<label class="am-checkbox am-secondary">
				<input type="checkbox"  value="1" name="offline" data-am-ucheck > 已下架（共0个）
			</label>
			<label class="am-checkbox am-secondary">
				<input type="checkbox"  value="1" name="expired"  data-am-ucheck  checked="checked"> 已过期（共0个）
			</label>
			<button type="submit" class="am-btn am-btn-primary am-margin-top-sm">提交</button>
		</form>

	</div>
	
</div><footer class="admin-content-footer">
	<hr>
	<p class="am-padding-left">深圳前海刷云科技有限公司  CopyRight©2016  闽ICP备16026055号</p>
</footer></div>
<!-- content end -->
	
</div>

<div class="am-hide"><script src="//s4.cnzz.com/z_stat.php?id=1259014359&web_id=1259014359" language="JavaScript"></script></div>					
</html>